﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PhotoAdder.aspx.cs" Inherits="PhotoAdder" Title="Photo.RU" culture="auto" uiculture="auto" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

    

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="scripts/jquery.uploadify.js"></script>

    <div>
        <asp:HyperLink ID="lnkHome" runat="server" text="Home" 
            SkinID="albums" meta:resourcekey="lnkHome"></asp:HyperLink>
    &nbsp;&nbsp;
        <asp:HyperLink ID="hplToAlbum" runat="server" meta:resourcekey="hplToAlbum" 
            SkinID="albums" text="To Album" ></asp:HyperLink>
    </div>
    <div class="centerAlignment">
    <asp:Label ID="lblUpload" runat="server" Text="Upload photos" meta:resourcekey="lblUpload" SkinID="lblWizardStep"></asp:Label>
    <asp:FileUpload runat="server" ID="FileUploader"></asp:FileUpload>
    </div>

<script type="text/javascript">
    $(window).load(
    function () {
        $("#<%=FileUploader.ClientID %>").fileUpload({
            'uploader': 'scripts/uploader.swf',
            'cancelImg': 'images/cancel.png',
            'buttonImg': '<%=GetLocalResourceObject("BrowseFilesImg") %>',
            'script': 'Upload.ashx?ID=<%=AlbumId%>',
            'fileDesc': 'Image Files',
            'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
            'multi': true,
            'auto': true
        });
    }
);
</script>

</asp:Content>